﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="home.aspx.cs" Inherits="Homepage" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:xn="http://www.renren.com/2009/xnml" xmlns:og="http://ogp.me/ns#">
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>首页</title>
<!-- #include file="head.htm"-->
<link href="css/fancybox.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" language="javascript">

    $(function(){
        $("a[name=showImage]").fancybox();
    });

</script>
<script type="text/javascript" src="js/index.js"></script>
<style>
    .ddlType{
        float:left;
        font-size:14px;
    }
</style>
<script language="javascript">

    function search(){
        var key = document.getElementById("tbSearchValue").value;
        var type = document.getElementById("ddlSearchType").value;
        if(type=="pdf"){
            var url = "searchPdf.aspx?key=" + key;
            window.open(url);
        }else if(type=="movie"){
            var url = "searchMovie.aspx?key=" + key;
            window.open(url);
        }
    }
</script>
</head>
<body >
<form id="Form1" runat="server">

<!-- #include file="header.htm"-->

	<div class="searchBox" id="searchBox">
		<div class="searchNew">
			<h3></h3>
			<div class="searchbar">
                <asp:TextBox ID="tbSearchValue" CssClass="listTopDefault" MaxLength="100" runat="server"></asp:TextBox>
				<asp:DropDownList ID="ddlSearchType" Width="65px" Height="24px" cssClass="ddlType" runat="server">
                    <asp:ListItem Value="pdf" Text="<%$ Resources:ResourceGlobal,文档 %>"></asp:ListItem>
                    <asp:ListItem Value="movie" Text="<%$ Resources:ResourceGlobal,视频 %>"></asp:ListItem>
                </asp:DropDownList>
                <asp:Button ID="btSearch" runat="server" Text="GO" CssClass="btn" OnClientClick="search();" />
                <asp:LinkButton ID="lbChangeLanguage" runat="server" OnClick="lbChangeLanguage_Click">English Version</asp:LinkButton>
			</div>
		</div>
	</div>
 
<div id="outer" class="clear">
	
	<div class="boxleft">
		<!--阅读什么-->
		<div id="readcolumn" class="box">
			<span class="rd_tl"></span><span class="rd_tr"></span>
			
						<div class="readbox" id="allreadDiv1">
							<h2><asp:Literal ID="Literal39" runat="server" Text="<%$ Resources:ResourceGlobal,课程动态%>" />...</h2>

							<div id="hot_wrapper" class="hot">
								<span id="next" class="right" title="下一页">下一页</span>
								<span id="stepup" class="noleft" title="上一页">上一页</span>
								<div class="outer_container" >
									<ul id="hot_container" >
										<asp:Repeater ID ="Repeater6" runat ="server">
				                        <ItemTemplate >
				                            <li>
											    <a name="showImage" href="<%# DataBinder.Eval(Container.DataItem,"url") %>" >
											        <img src="<%# DataBinder.Eval(Container.DataItem,"url") %>" alt="<%# DataBinder.Eval(Container.DataItem,"name") %>" width="130px" height="120px" />
											    </a>
											    <p>
											        <a name="showImage" href="<%# DataBinder.Eval(Container.DataItem,"url") %>" >
											            <%# DataBinder.Eval(Container.DataItem,"name") %>
											        </a>
											    </p>
										    </li>
									    </ItemTemplate>
							            </asp:Repeater>									
									</ul> 
								</div>
							</div>
						</div>
    					
			<span class="rd_bl"></span><span class="rd_br"></span>
		</div>
		<!--阅读什么end-->
		<!-- *************************************************************************** -->

		
		
	
		<!--分类阅读-->
		<div id="classread" class="box">
			<div class="classbox">

				
						<div class="classcolumn">
							<h3><asp:Literal ID="Literal40" runat="server" Text="<%$ Resources:ResourceGlobal,课程介绍%>" /><span><a class="fr"  href="kcjs_kcjj.aspx" target="_blank"><asp:Literal ID="Literal11" runat="server" Text="<%$ Resources:ResourceGlobal,详细%>" />>></a></span></h3>
							<ul class="clear" style=" height:100px; overflow:hidden; margin-left:20px; margin-right:20px;">
							    <%=content %>
								
<%--											<li ><a href="kcjs_jxdg.aspx" target="_blank"><asp:Literal ID="Literal41" runat="server" Text="<%$ Resources:ResourceGlobal,教学大纲%>" /></a></li>
											
											
											<li ><a href="jsbg_kcxz.aspx" target="_blank"><asp:Literal ID="Litera42" runat="server" Text="<%$ Resources:ResourceGlobal,课程现状%>" /></a></li>
											
											
											<li ><a href="jxzy_jxsp.aspx" target="_blank"><asp:Literal ID="Litera43" runat="server" Text="<%$ Resources:ResourceGlobal,教学视频%>" /></a></li>
											
											
											<li ><a href="jxzy_clsj.aspx" target="_blank"><asp:Literal ID="Litera44" runat="server" Text="<%$ Resources:ResourceGlobal,材料数据%>" /></a></li>
											
											
											<li ><a href="jxzy_zxlx.aspx" target="_blank"><asp:Literal ID="Litera45" runat="server" Text="<%$ Resources:ResourceGlobal,自学练习%>" /></a></li>
											
											
											<li ><a href="jxzy_zyfk.aspx" target="_blank"><asp:Literal ID="Litera46" runat="server" Text="<%$ Resources:ResourceGlobal,作业反馈%>" /></a></li>
											
											
											<li ><a href="jxyj_yjcgjhj.aspx" target="_blank"><asp:Literal ID="Litera47" runat="server" Text="<%$ Resources:ResourceGlobal,研究成果%>" /></a></li>
											
											
											<li ><a href="jxyj_fblw.aspx" target="_blank"><asp:Literal ID="Litera48" runat="server" Text="<%$ Resources:ResourceGlobal,发表论文%>" /></a></li>	--%>																																
									
							</ul>
									
						    <h3>
						        <asp:Literal ID="Literal49" runat="server" Text="<%$ Resources:ResourceGlobal,最热视频%>" />
						        <span>
						            <a class="fr"  href="jxzy_jxsp.aspx" target="_blank"><asp:Literal ID="Literal50" runat="server" Text="<%$ Resources:ResourceGlobal,更多%>" />>></a>
						        </span>
						    </h3>
                            <asp:Repeater ID="Repeater5" runat="server">
                                <ItemTemplate>
                                <dl style=" width:100px; height:130px; float:left; margin:15px; text-align:center;" >
                                    <dt style="height:80px">
                                        <a  target="docin_p_end" href="player.aspx?id=<%# DataBinder.Eval(Container.DataItem,"id") %>">
                                            <img alt="<%# DataBinder.Eval(Container.DataItem,"name_cn") %>" onerror="this.src='images_cn/novideo.png'" 
                                            title ="<%# DataBinder.Eval(Container.DataItem,"name_cn") %>"                                                
                                            src="<%# DataBinder.Eval(Container.DataItem,"image_url") %>" width ="70px" height ="80px">
                                        </a>
                                    </dt>
		                            <dd>
		                                <a  target="docin_p_end" 
		                                    href="player.aspx?id=<%# DataBinder.Eval(Container.DataItem,"id") %>" title="<%# DataBinder.Eval(Container.DataItem,"name_cn") %>">
		                                    <%# DataBinder.Eval(Container.DataItem,"name_cn") %>
		                                </a>
		                            </dd>
	                            </dl>
                      
                                </ItemTemplate>
                            </asp:Repeater>
<%--							<ul class="hot_container">
							<asp:Repeater ID="Repeater5" runat ="server" >     
                                <ItemTemplate>
                                <li>
                                    <a  target="docin_p_end" href="player.aspx?id=<%# DataBinder.Eval(Container.DataItem,"id") %>">
                                        <img alt="<%# DataBinder.Eval(Container.DataItem,"name_cn") %>" onerror="this.src='images_cn/novideo.png'" 
                                        title ="<%# DataBinder.Eval(Container.DataItem,"name_cn") %>"                                                
                                        src="<%# DataBinder.Eval(Container.DataItem,"image_url") %>" width ="70px" height ="80px">
                                    </a> 
		                                <a  target="docin_p_end" 
		                                    href="player.aspx?id=<%# DataBinder.Eval(Container.DataItem,"id") %>" title="<%# DataBinder.Eval(Container.DataItem,"name_cn") %>">
		                                    <%# DataBinder.Eval(Container.DataItem,"name_cn") %>
		                                </a> 
		                        </li>
                                </ItemTemplate>
							</asp:Repeater>
							</ul>--%>
							
						</div>
						<span class="class_l"></span><span class="class_r"></span>
						
			</div>
		</div>
		<!--分类阅读end-->
		<!-- *************************************************************************** -->
		</div>
	<!-- *************************************************************************** -->
	
	<div class="boxright">
	
	    <div class="box loginbox_new">
			<ul id="login_tag">
	    		<li class="selectTag">
	    			<a href="javascript:void(0)" onclick="selectSearchLoginDiv('login_tagnum0',this)" onfocus="this.blur()"><asp:Literal ID="Literal123" runat="server" Text="<%$ Resources:ResourceGlobal,用户信息%>" /></a>
	    		</li>
				<li class="">
					<a href="javascript:void(0)" onclick="selectSearchLoginDiv('login_tagnum1',this)" onfocus="this.blur()"><asp:Literal ID="Literal8" runat="server" Text="<%$ Resources:ResourceGlobal,修改信息%>" /></a>
				</li>
	  		</ul>
	  		<div id="login_tagnum">
	  			<!-- 登陆 -->
	  			<div style="display: block;" class="login_tagnum login_fillet selectSearch" id="login_tagnum0">
					<span class="rd_bl"></span><span class="rd_br"></span><span class="rd_tr"></span>
					<div class="login_new">
							<p class="dl_box mttips"><label><asp:Literal ID="Literal121" runat="server" Text="<%$ Resources:ResourceGlobal,用户账号%>" /></label></p>
							<p class="dl_box mttips fortext_mail">
                                <asp:TextBox ID="lbUserAcount" runat="server" ReadOnly="true"></asp:TextBox>
							</p>
							<p class="dl_box mttips"><label><asp:Literal ID="Literal122" runat="server" Text="<%$ Resources:ResourceGlobal,用户名%>" /></label></p>
							<p class="dl_box mttips fortext_mail">
							    <asp:TextBox ID="lbUserName" runat="server" ReadOnly="true"></asp:TextBox>
							</p>
							<p class="dl_box mttips"><label><asp:Literal ID="Literal2" runat="server" Text="<%$ Resources:ResourceGlobal,邮箱%>" /></label></p>
							<p class="dl_box mttips fortext_mail">
							    <asp:TextBox ID="lbUserEmail" runat="server" ReadOnly="true"></asp:TextBox>
							</p>
							<p class="mttips">
							    <asp:Button ID="btLogout" runat="server" Text="<%$ Resources:ResourceGlobal,登出%>" CssClass="reg regtips" OnClick="btLogout_Click"/><asp:Label ID="lbMsg" runat="server" Text="" ForeColor="red" ></asp:Label>
							</p>
					</div>
				</div>
				<!-- 注册 -->
				<div style="display: none;" class="login_tagnum login_fillet" id="login_tagnum1">
					<div class="login_new reg_new">
							<p class="dl_box mttips">
							    <label for="regloginname"><asp:Literal ID="Literal3" runat="server" Text="<%$ Resources:ResourceGlobal,用户名%>" />:</label>
							    <asp:TextBox ID="tbUserName" runat="server"></asp:TextBox>
							    <asp:Image ID="imgUserName" runat="server" ImageUrl="images_cn/reg_icon_cw.gif" Visible="false" />
							</p>
							<p class="dl_box mttips fortext_mail">
							    <label for="regloginemail"><asp:Literal ID="Literal4" runat="server" Text="<%$ Resources:ResourceGlobal,邮箱%>" />:</label>
							    <asp:TextBox ID="tbUserEmail" runat="server"></asp:TextBox>
							    <asp:Image ID="imgUserEmail" runat="server" ImageUrl="images_cn/reg_icon_cw.gif" Visible="false" />
							</p>
							<p class="dl_box mttips fortext_mail">
							    <label for="regloginemail"><asp:Literal ID="Literal5" runat="server" Text="<%$ Resources:ResourceGlobal,电话%>" />:</label>
							    <asp:TextBox ID="tbUserPhone" runat="server"></asp:TextBox>
							    <asp:Image ID="imgUserPhone" runat="server" ImageUrl="images_cn/reg_icon_cw.gif" Visible="false" />
							</p>
							<p class="dl_box">
							    <label for="regpassword"><asp:Literal ID="Literal6" runat="server" Text="<%$ Resources:ResourceGlobal,密码%>" />:</label>
							    <asp:TextBox ID="tbPwd" runat="server" TextMode="password"></asp:TextBox>
							    <asp:Image ID="imgPwd" runat="server" ImageUrl="images_cn/reg_icon_cw.gif" Visible="false" />
							</p>
							<p class="dl_box">
							    <label for="regpassword"><asp:Literal ID="Literal7" runat="server" Text="<%$ Resources:ResourceGlobal,确认密码%>" />:</label>
							    <asp:TextBox ID="tbConPwd" runat="server" TextMode="password"></asp:TextBox>
							    <asp:Image ID="imgConPwd" runat="server" ImageUrl="images_cn/reg_icon_cw.gif" Visible="false" />
							</p>
							<p class="mttips">
							    <asp:Button ID="btModify" runat="server" Text="<%$ Resources:ResourceGlobal,确定修改%>" CssClass="reg regtips" OnClick="btModify_Click" />
							</p>
					</div>
				</div>
	  		</div>
		</div>
	
		<!--用户排行-->
		<div id="userrank" class="box slills fr">
			<span class="rd_tl"></span><span class="rd_tr"></span>
			<div class="userbox userbox-freeDoc">

				<div class="forboxbg clear">
				<!-- 消息 -->
				<h4><a href="jrxw.aspx"  target="_blank" class="fr"><asp:Literal ID="Literal152" runat="server" Text="<%$ Resources:ResourceGlobal,更多%>" />&gt;&gt;</a><asp:Literal ID="Literal52" runat="server" Text="<%$ Resources:ResourceGlobal,新闻公告%>" /></h4>
				<div class="recombox">
					<ul class="announce">
		                <asp:Repeater ID="Repeater1" runat="server">            
                             <ItemTemplate>						
    					        <li><a title="<%# DataBinder.Eval(Container.DataItem,"name") %>" href="jrxw.aspx">
    					        <span <%# CheckEmergency((bool)DataBinder.Eval(Container.DataItem,"emergency")) %>>
    					            <%# DataBinder.Eval(Container.DataItem,"name") %>
    					        </span></a>
					            </li>    					
					        </ItemTemplate>
                     </asp:Repeater>
					</ul>
				</div>
				<!--消息end-->
				
	<% if (isAdmin)
           {
    %>            
             <!--阅读前10-->
				<h4><asp:Literal ID="Literal53" runat="server" Text="" /></h4>
				<div class="foractiveuser">
					<ol class="activeuser">
						
						<%--<li><a href="szdw_szjj.aspx" ><img class="userpic" alt="刘国权" src="images_cn/static_page/head1.png"/></a>
						<p class="fcb"><a href ="szdw_szjj.aspx">刘国权</a></p><p class="fc6"><asp:Literal ID="Literal54" runat="server" Text="<%$ Resources:ResourceGlobal,教授%>" /></p><p title ="g.liu@ustb.edu.cn">g.liu@ustb.edu.cn</p></li>
						
						<li><a href="szdw_szjj.aspx" ><img class="userpic" alt="曾燕屏" src="images_cn/static_page/head2.png" /></a>
						<p class="fcb"><a href ="szdw_szjj.aspx">曾燕屏</a></p><p class="fc6"><asp:Literal ID="Literal55" runat="server" Text="<%$ Resources:ResourceGlobal,副教授%>" /></p><p title ="zengyanping@mater.ustb.edu.cn">zengyanping@mater....</p></li>

						
						<li><a href="szdw_szjj.aspx" ><img class="userpic" alt="王  浩" src="images_cn/static_page/head3.png" /></a>
						<p class="fcb"><a href ="szdw_szjj.aspx">王 浩</a></p><p class="fc6"><asp:Literal ID="Literal56" runat="server" Text="<%$ Resources:ResourceGlobal,博士%>" /></p><p title ="hwang@ustb.edu.cn">hwang@ustb.edu.cn</p></li>--%>							
						
						<li><img class="userpic" alt="登陆" src="images_cn/admin.png" /><p class="fcb"></p> 
						<div align="center" ><a href="admin.aspx" ><img src="images_cn/admin_log.gif" width ="100px" /></a></div></li>										
					</ol>
				</div>	
			  <!--阅读前10end-->   
                
    <%       }
	%>
				
                    &nbsp; &nbsp; &nbsp;</div>
			</div>
			<span class="rd_bl"></span><span class="rd_br"></span>
		</div>
		<!--用户排行end-->
	</div>

	<!--精选和最新文档-->
	<div id="lowercont" class="box slills">
		<span class="rd_tl"></span><span class="rd_tr"></span>
		<div class="lowerbox">
			<div class="lowercolumn borderskills">
				<h4><asp:Literal ID="Literal57" runat="server" Text="<%$ Resources:ResourceGlobal,精选课件%>" /><span> <a href="jxzy_jxkj.aspx" class="fr"><asp:Literal ID="Literal58" runat="server" Text="<%$ Resources:ResourceGlobal,更多%>" />&gt;&gt;</a> </span></h4>
				             <asp:Repeater id="Repeater2" runat ="server">
				                        <ItemTemplate >
				
									<dl>
										<dt><a  href="reader.aspx?id=<%# DataBinder.Eval(Container.DataItem,"id") %>" target="docin_p_end">
										<img alt="<%# DataBinder.Eval(Container.DataItem,"name_cn") %>" src="<%# DataBinder.Eval(Container.DataItem,"image_url") %>"/></a></dt>

										<dd class="first">
											<a  title="<%# DataBinder.Eval(Container.DataItem,"name_cn") %>" href="reader.aspx?id=<%# DataBinder.Eval(Container.DataItem,"id") %>"
											 target="docin_p_end"><%# DataBinder.Eval(Container.DataItem,"name_cn") %></a>
										</dd>
										<dd>
											<asp:Literal ID="Literal59" runat="server" Text="<%$ Resources:ResourceGlobal,作者%>" />:<a target="_blank" title="<%# DataBinder.Eval(Container.DataItem,"author") %>" href="szdw_szjj.aspx"><%# DataBinder.Eval(Container.DataItem, "author")%></a>
										</dd>

										<dd><%# DataBinder.Eval(Container.DataItem,"created_at") %></dd>
										<dd><asp:Literal ID="Literal60" runat="server" Text="<%$ Resources:ResourceGlobal,热度%>" />:<span class='<%# getViewHostClass(DataBinder.Eval(Container.DataItem,"viewnum")) %>'></span></dd>
									</dl>
									    </ItemTemplate>
									</asp:Repeater>									
									
			</div>
			
			<div class="lowercolumn borderskills">
				<h4><asp:Literal ID="Literal61" runat="server" Text="<%$ Resources:ResourceGlobal,推荐文献%>" /><span><a href="jxzy_stjckda.aspx"  class="fr"><asp:Literal ID="Literal62" runat="server" Text="<%$ Resources:ResourceGlobal,更多%>" />&gt;&gt;</a></span></h4>
				            <asp:Repeater ID="Repeater3" runat ="server">
				                    <ItemTemplate >
									<dl>

										<dt><a  href="reader.aspx?id=<%# DataBinder.Eval(Container.DataItem,"id") %>" target="docin_p_end">
										<img alt="<%# DataBinder.Eval(Container.DataItem,"name_cn") %>" src="<%# DataBinder.Eval(Container.DataItem,"image_url") %>"/></a></dt>
										<dd class="first">
											<a  title="<%# DataBinder.Eval(Container.DataItem,"name_cn") %>" href="reader.aspx?id=<%# DataBinder.Eval(Container.DataItem,"id") %>" 
											target="docin_p_end"><%# DataBinder.Eval(Container.DataItem,"name_cn") %></a>
										</dd>
										<dd>
											<asp:Literal ID="Literal63" runat="server" Text="<%$ Resources:ResourceGlobal,作者%>" />:<a target="_blank" title="<%# DataBinder.Eval(Container.DataItem,"author") %>" href="szdw_szjj.aspx"><%# DataBinder.Eval(Container.DataItem, "author")%></a>

										</dd>
										<dd><%# DataBinder.Eval(Container.DataItem,"created_at") %></dd>
										<dd><asp:Literal ID="Literal64" runat="server" Text="<%$ Resources:ResourceGlobal,热度%>" />:<span class='<%# getViewHostClass(DataBinder.Eval(Container.DataItem,"viewnum")) %>'></span></dd>
									</dl>
									</ItemTemplate>
							</asp:Repeater> 							
			</div>
			
			<div class="lowercolumn borderskills">
				<h4><asp:Literal ID="Literal65" runat="server" Text="<%$ Resources:ResourceGlobal,发表论文%>" /><span><a href="jxzy_jdwx.aspx"  class="fr"><asp:Literal ID="Literal66" runat="server" Text="<%$ Resources:ResourceGlobal,更多%>" />&gt;&gt;</a></span></h4>
				            <asp:Repeater ID ="Repeater4" runat ="server">
				                <ItemTemplate >
									<dl>

										<dt><a  href="reader.aspx?id=<%# DataBinder.Eval(Container.DataItem,"id") %>" target="docin_p_end">
										<img alt="<%# DataBinder.Eval(Container.DataItem,"name_cn") %>" 
										src="<%# DataBinder.Eval(Container.DataItem,"image_url") %>"  /></a></dt>
										<dd class="first">
											<a  title="<%# DataBinder.Eval(Container.DataItem,"name_cn") %>" href="reader.aspx?id=<%# DataBinder.Eval(Container.DataItem,"id") %>"
											 target="docin_p_end"><%# DataBinder.Eval(Container.DataItem,"name_cn") %></a>
										</dd>
										<dd>
											<asp:Literal ID="Literal67" runat="server" Text="<%$ Resources:ResourceGlobal,作者%>" />:<a  target="_blank" title="<%# DataBinder.Eval(Container.DataItem,"author") %>" href="szdw_szjj.aspx"><%# DataBinder.Eval(Container.DataItem, "author")%></a>

										</dd>
										<dd><%# DataBinder.Eval(Container.DataItem,"created_at") %></dd>
										<dd><asp:Literal ID="Literal68" runat="server" Text="<%$ Resources:ResourceGlobal,热度%>" />:<span class='<%# getViewHostClass(DataBinder.Eval(Container.DataItem,"viewnum")) %>'></span></dd>
									</dl>
									</ItemTemplate>
							</asp:Repeater>
				</div>

		</div>
	</div>

</div>

<!--页尾-->

<!-- #include file="footer.htm"-->




</form>

</body>
</html>
 

<SCRIPT LANGUAGE="JavaScript" TYPE="TEXT/JAVASCRIPT">

var browserName = navigator.appName;//这句话是用来检查浏览器
if(browserName=="Microsoft Internet Explorer"){
    ua = navigator.appVersion;
    var ie6 = /msie 6\.0/i.test(ua); 
    var ie5 = /msie 6\.0/i.test(ua); 
    if(ie6||ie5){
        window.alert("您的IE或使用IE内核的浏览器版本太低，可能导致无法正常使用教学平台的部分功能。请升级版本。");
    }
  }
</SCRIPT>